package com.soup.config;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class SystemConfiguration {

    private static final Properties properties;
    static {
        InputStream resourceAsStream = SystemConfiguration.class.getResourceAsStream("/application.properties");
        properties = new Properties();
        try {
            properties.load(resourceAsStream);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static String getProperty(String key){
        return properties.getProperty(key);
    }
}
